﻿@model List<Pku.BookStore.Model.FavoritesModel>
@{
    Layout = "~/Views/Shared/_UserLayout.cshtml";
    ViewBag.Title = "FavoritesList";
}
<div class="right">
    <div class="m m5" id="buy-area" data-widget="tabs">
        <div class="mt">
            <ul class="tab">
                <li clstag="click|keycount|myhome|onemorder" id="latelyOrderListLi" data="1" class="curr"
                    data-widget="tab-item"><s></s><b></b>收藏列表</li>
            </ul>
        </div>
        <div class="mc">
            <div class="tabcon" id="order-list" data-widget="tab-content">
                <div class="mc">
                    <div id="order-list" class="tabcon">
                        <div id="latelyOrderListDiv" class="tb-void tb-rows">
                            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                <tbody>
                                    <tr>
                                        <th width="90">
                                            ID
                                        </th>
                                        <th>
                                            图书封面
                                        </th>
                                        <th width="300">
                                            图书名称
                                        </th>
                                        <th width="120">
                                            操作
                                        </th>
                                    </tr>
                                    @foreach (var item in Model)
                                    {
                                        <tr>
                                            <td>
                                                @item.FavoritesID
                                            </td>
                                            <td>
                                                <a href="/Product/Detail/@item.BookID" target=_blank><img src="@item.Image" width="80" /></a>
                                            </td>
                                            <td>
                                                <a href="/Product/Detail/@item.BookID" target=_blank>@item.BookName</a>
                                            </td>
                                            <td>
                                                <a style="margin-left:10px;" href="/User/FavoritesAct/@item.FavoritesID?Act=D" onclick="return confirm('你确定删除该记录吗?');">
                                                    删除</a>
                                            </td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--user-area-->
    <div class="clr">
    </div>
</div>
<!--right-->
